/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ar.com.neolokura.travian.helper.constant;

import ar.com.neolokura.travian.helper.bo.item.ResourcesCost;
import java.util.HashMap;

/**
 *
 * @author gustavo
 */
public class ResourceConstants {

    private HashMap<Integer, ResourcesCost> costs;

    public ResourceConstants() {
        costs = getProductionPerHour();
    }

    public Integer getProductionPerHour(Integer level) {
        Integer prod = costs.get(level).getProductionPerHour();
        return prod;
    }
    public Integer getNeededWooden(Integer level) {
        Integer qty = costs.get(level).getWooden();
        return qty;
    }
    public Integer getNeededClay(Integer level) {
        Integer qty = costs.get(level).getClay();
        return qty;
    }
    public Integer getNeededIron(Integer level) {
        Integer qty = costs.get(level).getIron();
        return qty;
    }
    public Integer getNeededCrop(Integer level) {
        Integer qty = costs.get(level).getCrop();
        return qty;
    }
    
    private HashMap<Integer, ResourcesCost> getProductionPerHour() {
       
        HashMap<Integer, ResourcesCost> costsList = new HashMap<Integer, ResourcesCost>();

        costsList.put(1, new ResourcesCost(Integer.MIN_VALUE, Integer.SIZE, Integer.SIZE, Integer.SIZE, Integer.SIZE));

        return costsList;
    }
}
